package com.jeff.tianti.cms.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "questions_answers_num")//问答管理表
public class QuestionsAnswersNum {//用户id   用户提问和回答的次数表
    private static final long serialVersionUID = 6202731746971094497L;
    @Id
    @Column(name = "uid")//用户id   用户提问和回答的次数表
    private String uid;
    @Column(name = "question_num")//提问次数
    private int questionNum;
    @Column(name = "answers_num")//回答次数
    private int answersNum;
    @Column(name = "question_date")//最新提问时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date questionDate;
    @Column(name = "answers_date")//最新提问时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date answersDate;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public int getQuestionNum() {
        return questionNum;
    }

    public void setQuestionNum(int questionNum) {
        this.questionNum = questionNum;
    }

    public int getAnswersNum() {
        return answersNum;
    }

    public void setAnswersNum(int answersNum) {
        this.answersNum = answersNum;
    }

    public Date getQuestionDate() {
        return questionDate;
    }

    public void setQuestionDate(Date questionDate) {
        this.questionDate = questionDate;
    }

    public Date getAnswersDate() {
        return answersDate;
    }

    public void setAnswersDate(Date answersDate) {
        this.answersDate = answersDate;
    }
}
